﻿using System.Collections;
using System.Collections.Generic;
using Assets.Scripts.Handlers;
using Assets.Scripts.UserCache;
using ExitGames.Client.Photon;
using UnityEngine;
using WorldOfSuperpowers_COMMON;

public class RenameHandler : BaseHandler {
    

    public override void Response(OperationResponse operationResponse)
    {
        switch (operationResponse.ReturnCode)
        {
            case (short)ReturnCode.Success:
                RenameManager._instance.ActiveRenamePanel(false);
                UserInfoManager._instance.SetUserInfo(UserInfos.CurrentUserModel);
                break;
        }
        TipsController._instance.ShowNewTipContent(operationResponse.DebugMessage);
    }
}
